import request from '@/utils/request'

// 查询upay充值列表
export function listUser_upay(query) {
  return request({
    url: '/model/user_upay/list',
    method: 'get',
    params: query
  })
}
// 查询充值统计数据
export function selectCount() {
  return request({
    url: '/model/user_upay/selectCount',
    method: 'get'
  })
}

// 查询upay充值详细
export function getUser_upay(id) {
  return request({
    url: '/model/user_upay/' + id,
    method: 'get'
  })
}

// 新增upay充值
export function addUser_upay(data) {
  return request({
    url: '/model/user_upay',
    method: 'post',
    data: data
  })
}

// 修改upay充值
export function updateUser_upay(data) {
  return request({
    url: '/model/user_upay',
    method: 'put',
    data: data
  })
}

// 删除upay充值
export function delUser_upay(id) {
  return request({
    url: '/model/user_upay/' + id,
    method: 'delete'
  })
}

// 导出upay充值
export function exportUser_upay(query) {
  return request({
    url: '/model/user_upay/export',
    method: 'get',
    params: query
  })
}
